package cn.shangqizhenshuai.extend.entity;

import java.lang.reflect.Type;
import java.util.Map;
import java.util.Set;

public class ExtendsMapperEntity {
    //方法名称
    public String methodname;
    // 类型 和 参数（java类型）
    public Map<String,String> parameter;
    //返回值
    public String returnType;


    public String getMethodname() {
        return methodname;
    }

    public void setMethodname(String methodname) {
        this.methodname = methodname;
    }

    public Map<String, String> getParameter() {
        return parameter;
    }

    public void setParameter(Map<String, String> parameter) {
        this.parameter = parameter;
    }

    public String getReturnType() {
        return returnType;
    }

    public void setReturnType(String returnType) {
        this.returnType = returnType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ExtendsMapperEntity that = (ExtendsMapperEntity) o;

        if (methodname != null ? !methodname.equals(that.methodname) : that.methodname != null) return false;
        if (parameter != null ? !parameter.equals(that.parameter) : that.parameter != null) return false;
        return returnType != null ? returnType.equals(that.returnType) : that.returnType == null;
    }

    @Override
    public int hashCode() {
        int result = methodname != null ? methodname.hashCode() : 0;
        result = 31 * result + (parameter != null ? parameter.hashCode() : 0);
        result = 31 * result + (returnType != null ? returnType.hashCode() : 0);
        return result;
    }
}
